﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace cnetmegamanprj
{
    public class MM_Json
    {
        public int maxLevel;

        public string[] levelNames;

        public int lvlBankOffset;
        public int lvlBankSz;
        public int chrBankOffset;

        public int maxScr;
        public int maxScrPreset;
        public int maxPalSet;
        public int maxSprite;
        public int maxSpriteName;
        public int maxScroll;

        public class LevelBank
        {
            public int chrPtr0;
            public int chrPtr1;

            public int sprChrLoad;
                
            public int palSet;

            public int startPointScreen;

            public int scrLayout;
            public int scrollDir;
            public int scrollData1;

            public int sprScreen;
            public int sprX;
            public int sprY;
            public int sprType;
        }
        public LevelBank levelBank;
        public LevelBank levelBank2;
        //public LevelBank[] levelBank = new LevelBank[2];

        public class GraphicsBank
        {
            public int tsaTile;
            public int tsaPal;
            public int screen;
        }
        public GraphicsBank graphicsBank;
        public int maxSoundId;

        public class LevelByteArray
        {
            public int gfxBankByte;
            public int BGM;
        }
        public LevelByteArray levelByteArray;
        public int spriteHP;

        public string[] tsaTypes;
    }
}
